const KoaRouter = require('koa-router')

const {auth} = require('../middleware/auth.middleware')

const { 
	findAll,
	addOrders
 } = require('../controller/order.controller')

const orderRouter = new KoaRouter({prefix:'/order'})

orderRouter.get('/findAll',findAll)
orderRouter.post('/addOrders',auth,addOrders)

module.exports = orderRouter